/* Pineapple Blueboard - Assessment marker script */

$(document).ready(function (){

	$('#mskb1').click(function(){
		$('#assessment_mask').fadeOut(300);

	});
	$('#assessment_viewer li a').click(function(){
		var itemid = $(this).attr('href');
		itemid = itemid.replace("#", "");
		var itemnm = $(this).find('.sbn').html();
		$('#mskhi').val(itemid);
		$('#msktx').val('');
		$('#msknm').html(itemnm);
		$('#assessment_mask').fadeIn(200);
		//alert($(this).parent().find('b:nth-child(3)').html());
		return false;
	
	});
	
	$('#mskb2').click(function(){
		/*var urlvar = $('#mskhi').val();
		var mark = $('#msktx').val();
		window.location = 'assessment/mark/'+urlvar+'?grade='+mark;*/
		$('#mskfr').submit();
	});
	
});